package com.feng.gulimall.auth.feign;

import com.feng.common.utils.R;
import com.feng.gulimall.auth.vo.GiteeUser;
import com.feng.gulimall.auth.vo.UserLoginVo;
import com.feng.gulimall.auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("member/member/regist")
    public R register(@RequestBody UserRegisterVo vo);
    @PostMapping("member/member/login")
    public R login(@RequestBody UserLoginVo userLoginVo);
    @PostMapping("member/member/oauth2/login")
    public R oauthlogin(@RequestBody GiteeUser giteeUser);
}
